function Lader(/*Vec2*/ position, /*MapManager*/ mapManager, /*Boolean*/ downstairs){
	this.position = position;
	this.mapManager = mapManager;

	var d = (downstairs)? 1 : -1;
	
	this.inMap = true;
	
	this.name = "Lader";
	this.vertices = [-100,140*d, 100,140*d, 70,110*d, -70,110*d, -100,140*d];
	this.extra = [-40,125,-40,-125, 40,125,40,-125, -40,100,40,100, -40,60,40,60, -40,20,40,20, -40,-20,40,-20, -40,-60,40,-60, -40,-100,40,-100];
	this.extraL = [0,125,0,-125];
}

Lader.prototype.draw = function(/*Context*/ ctx, /*float*/ scale){
	var game = this.mapManager.game;
	var rh = this.mapManager.renderSizeH;
	var v = this.vertices;
	var x1, y1, x2, y2;
	
	x1 = rh.a + (v[0] * scale);
	y1 = rh.b + (v[1] * scale);
	
	for (var i=2,len=this.vertices.length;i<len;i+=2){
		x2 = rh.a + (v[i] * scale);
		y2 = rh.b + (v[i + 1] * scale);
		
		game.drawLine(x1,y1,x2,y2);
		
		x1 = x2;
		y1 = y2;
	}
	
	var dir = this.mapManager.player.direction;
	var vert = this.extra;
	if (dir == 0 || dir == 2){ vert = this.extraL; }
	
	for (var i=0,len=vert.length;i<len;i+=4){
		x1 = rh.a + (vert[i] * scale);
		y1 = rh.b + (vert[i+1] * scale);
		x2 = rh.a + (vert[i+2] * scale);
		y2 = rh.b + (vert[i+3] * scale);
		
		game.drawLine(x1,y1,x2,y2);
	}
};
